import request from '@/utils/request'

/**
 * 获取病案包数据
 * @param data 查询参数
 */
export function getMRpackage (data) {
    return request({
        url: '/DRG/Api/DataManage_Package/Package',
        method: 'post',
        data
    })
}

/**
 * 删除病案包数据
 * @param data 查询参数
 */
export function removePackage (data) {
    return request({
        url: `/MRDM/Api/MRPackage/DelPackage?ID=${data.id}`,
        method: 'get',
        data
    })
}

/**
 * 导出列表数据
 * @param data 查询参数
 */
export function exportPackageList (data) {
    return request({
        url: '/DRG/api/DataManage_Package/ExportPackage',
        method: 'post',
        data
    })
}

/**
 * 重新分组
 * @param data 查询参数
 */
export function reQCDataPackage (data) {
    return request({
        url: `/DRG/api/DataManage_Package/ReGroupingPackage?MRPackageId=${data.MRPackageId}`,
        method: 'get',
        data
    })
}
